<%--
 *  File:    AccountingPeriodInfo.jsp
 *  @Author: Langerwang
 *  Date:    2002/1/23
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>
<%@ page contentType = "text/html;charset=UTF-8" %>


<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.AccountingPeriodInfo");
  String privilegeCode = "40106";
  String strModuleName = "SPM";
%>




<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/Security.inc" %>

<html>
<head>
<title>AccountingPeriodInfo</title>
<PageFlow:CheckPageFlow pageName="accountingperiodinfo"/>
<%
  Vector accountingPeriodInfo = (Vector)pageContext.getAttribute("accountingperiodinfo");
  if(accountingPeriodInfo == null)
  {
    accountingPeriodInfo = new Vector();
  }
  cat.debug("The accountingPeriodInfo is :" + accountingPeriodInfo);
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript">
function page_unsaveaccount()
{
  if (!confirm('<%= message.getMessageDesc("ARE_YOU_SURE") %>')) return;
  frm.actionname.value = "unsaveaccount";
  frm.target = "_self";
  isRunning = true;
  frm.submit();
}
</script>
</head>
<body>
<form name="frm" method="post" action="../../Dispatcher" target="_self">
  <input type="hidden" name="pagename" value="accountingperiodinfo">
  <input type="hidden" name="actionname">
  <input type="hidden" name="nulldate" value=" ">
  <input type="hidden" name="nullinteger" value=" ">
  <custom:hidden property="accyearid"/>

<table width="100%" cellspacing="0" border="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td colspan="2" class="summary_top"></td>
        </tr>
        <tr>
          <td colspan="2"><img src="../../images/<%= strLanguageCode %>/quote.gif" width="16" height="11">
            <%= label.getLabelName("L_SetAP") + label.getLabelName("L_Colon") %></td>
        </tr>
      </table>
      <table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
        <tr class="deepblue-left">
          <td class="title_center" width="45"><%= label.getLabelName("L_Sequence") %></td>
          <td class="title_center"><%= label.getLabelName("L_BeginningDate") %></td>
          <td class="title_center"><%= label.getLabelName("L_EndingDate") %></td>
          <td class="title_center"><%= label.getLabelName("L_CloseDate") %></td>
          <td class="title_center" width="45"><%= label.getLabelName("L_Status") %></td>
        </tr>
          <%
             int i = 0;
             String strClassType = new String();
          %>
          <logic:iterate id="acc" collection="<%= accountingPeriodInfo %>">
          <%
            HashMap accMap = (HashMap)pageContext.getAttribute("acc");
            if(i%2 == 1)
            {
              strClassType = "td-listrom";
            }else{
              strClassType = "none";
            }
            i++;
          %>
        <tr class="<%=JspHelper.filterNull( strClassType )%>">
          <td>&nbsp;<%=JspHelper.filterNull( accMap.get("no") )%></td>
          <td>&nbsp;<%=JspHelper.filterNull( accMap.get("begindate") )%></td>
          <td>&nbsp;<%=JspHelper.filterNull( accMap.get("enddate") )%></td>
          <td>&nbsp;<%=JspHelper.filterNull( accMap.get("closedate") )%></td>
          <td>&nbsp;<%=JspHelper.filterNull( accMap.get("statusname") )%></td>
        </tr>
        </logic:iterate>
      </table>
      <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="summary_top"></td>
        </tr>
        
      </table>
    </td>
  </tr>
</table>
</form>
</body>
</html>
